package com.hm.controller;


import com.hm.pojo.HmStores;
import com.hm.serivce.HmStoresService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(value = "盒马门店地址接口",tags = "盒马门店地址接口")
public class HmStoresController {

    @Autowired
    private HmStoresService hmStoresService;


    /**
     * 盒马鲜生门店所有地址
     * @return
     */
    @RequestMapping(value = "/HmstoresList",method = RequestMethod.GET)
    @ApiOperation(value = "盒马门店地址")
    public List<HmStores> HmstoresList(){
        List<HmStores> list = hmStoresService.HmstoresList();
        return  list;
    }
}
